package com.masterrabbit.sn.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.masterrabbit.sn.domain.Activities;
import com.masterrabbit.sn.domain.Reviews;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
* @author 13119
* @description 针对表【reviews】的数据库操作Mapper
* @createDate 2025-03-20 16:08:59
* @Entity com.masterrabbit.sn.domain.Reviews
*/
@Mapper
public interface ReviewsMapper extends BaseMapper<Reviews> {
    /**
     * 查看商家评价
     */
    @Select("SELECT * FROM reviews WHERE user_merchant_id = #{userMerchantId}")
    Page<Reviews> getReviews( @Param("userMerchantId") Integer userMerchantId, Page<Reviews> page);
}




